package com.ruoyi.blog.domain;

import lombok.Data;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 【请填写功能名称】对象 tb_blog
 * 
 * @author ruoyi
 * @date 2024-03-08
 */
@Data
public class TbBlog extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 博客表主键id */
    private String blogId;

    /** 博客标题 */
    @Excel(name = "博客标题")
    private String blogTitle;

    /** 排序 */
    @Excel(name = "排序")
    private Integer blogSort;

    /** 博客封面图 */
    @Excel(name = "博客封面图")
    private String blogCoverImage;

    /** 博客内容 */
    @Excel(name = "博客内容")
    private String blogContent;

    /** 博客分类id */
    @Excel(name = "博客分类id")
    private String blogCategoryId;

    /** 博客分类(冗余字段) */
    @Excel(name = "博客分类(冗余字段)")
    private String blogCategoryName;

    /** 博客标签 */
    @Excel(name = "博客标签")
    private String blogTags;

    /** 付费内容（网盘链接） */
    @Excel(name = "付费内容", readConverterExp = "网=盘链接")
    private String payContext;

    /** 0-草稿 1-发布 */
    @Excel(name = "博客审核状态 0：待审核，1：审核不通过，2：审核通过，3：下架")
    private Long blogStatus;

    /** 阅读量 */
    @Excel(name = "阅读量")
    private Long blogViews;

    /** 0-允许评论 1-不允许评论 */
    @Excel(name = "0-允许评论 1-不允许评论")
    private Boolean enableComment;

    @Excel(name = "点赞数")
    private Integer liked;
    @Excel(name = "是否显示点赞数")
    private Boolean isShowLiked;

    @Excel(name = "点踩数")
    private Integer unliked;
    @Excel(name = "是否显示点踩数")
    private Boolean isShowUnliked;

    /** 是否删除 0=否 1=是 */
    @Excel(name = "是否删除 0=否 1=是")
    private Long isDeleted;
    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("blogId", getBlogId())
            .append("blogTitle", getBlogTitle())
            .append("blogSort", getBlogSort())
            .append("blogCoverImage", getBlogCoverImage())
            .append("blogContent", getBlogContent())
            .append("blogCategoryId", getBlogCategoryId())
            .append("blogCategoryName", getBlogCategoryName())
            .append("blogTags", getBlogTags())
            .append("payContext", getPayContext())
            .append("blogStatus", getBlogStatus())
            .append("blogViews", getBlogViews())
            .append("enableComment", getEnableComment())
            .append("isDeleted", getIsDeleted())
            .append("createTime", getCreateTime())
            .append("updateTime", getUpdateTime())
            .toString();
    }
}
